package com;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Base64;

public class Base64ToImage {

	public native void displayHelloWorld(String name);
	
	public static void main(String[] args) {
		try {
			String a = "";
			byte[] b = Base64.getDecoder().decode(a);
			FileOutputStream out = new FileOutputStream(new File("d:/a.png"));
			out.write(b);
			out.flush();
			out.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
